package com.mxgraph.examples.swing.editor;
import java.io.IOException;
import java.net.InetAddress;
import java.net.UnknownHostException;
import java.util.ArrayList;

import org.snmp4j.smi.IpAddress;

import com.mxgraph.examples.swing.PingIpCheck;
import java.util.HashMap;
public class ArrayListofVisibleItem {
	public static ArrayList<String> arrlist = new ArrayList<String>();
	
        public static HashMap deviceRTTHashMap = new HashMap();
        public static HashMap deviceReachability = new HashMap();
        public static HashMap serverOpenPort = new HashMap();
        public static HashMap serverClosedPort = new HashMap();
        String ip;
	
	//public ArrayListofVisibleItem(String ip) {
		//super();
	//	this.ip = ip;
	//}

	
	
	public static ArrayList<String> getList() {
	    return arrlist;
	}
	
	
		    // use add() method to add values in the list
	public void add(String ip){
		   arrlist.add(ip);
		  
		}
		
	
	   
	public void remove(String iptoremove){
		
		arrlist.remove(iptoremove);
	}
	
	public void find(String ipsearch){
		if (arrlist.contains(ipsearch)) {
		    System.out.println("IP address found");
		} else {
		    System.out.println("IP address not found");
		}
	}

	
		// TODO Auto-generated method stub
		
	}
	
	        

	
